<?php

/*
-------------------------------------------------------
*
*   NovaBoard 2
*   Copyright © 2011 NovaBoard team
*
*--------------------------------------------------------
*
*   Official site: www.novaboard.net
*   Contact e-mail: support@novaboard.net
*
*   GNU General Public License, version 2:
*   http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
*
---------------------------------------------------------
*/

// turn on error reporting
ini_set('display_errors', 1);
error_reporting(E_ALL | E_STRICT);

// turn off magic quotes
ini_set('magic_quotes_gcp', 0);
ini_set('magic_quotes_runtime', 0);

// deny direct access for other script
define('NOVA_RUN', true);

// Admin CP label
define('NOVA_ADMIN', true);

// start buffering & session
ob_start();
session_start();

// path constants
define('ROOT', dirname(__FILE__) . DIRECTORY_SEPARATOR);
define('URL', 'http://' . $_SERVER['HTTP_HOST'] . strstr($_SERVER['PHP_SELF'], 'admin.php', true));

// NovaBoard Version
define('NOVA_VERSION', '2.0.0');

// change this value to turn on / off caching
define('CACHE_MODE', true);

// set internal character encoding
mb_internal_encoding('UTF-8');

// Let the story begin!
require ROOT . 'init.php';

// stop buffering, output
header('HTTP/1.1 200 OK'); 	
ob_end_flush();
